package design.b3_decorator;

/**
 * 抽象装饰者：实现抽象工具，并包含抽象工具的实例。可以通过其子类拓展功能
 */
public class ToolDecorator implements ToolComponent {

	private ToolComponent toolComponent;

	public ToolDecorator(ToolComponent toolComponent) {
		this.toolComponent = toolComponent;
	}

	@Override
	public void doJob() {
		toolComponent.doJob();
	}
}
